home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacFormat 1995 January
/
macformat-020.iso
/
Shareware City
/
Developers
/
Think C dcmd 1.0.1 ƒ
/
Think Put Lib source
/
PutCStrTo.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1994-08-31
|
396 b
|
21 lines
|
[
TEXT/KAHL
]
extern unsigned char __putBuffer[256];
extern short __putMark;
void PutChar(char c);
void PutSpacesTo(int endpos);
void PutCStrTo(const char* s, int endpos)
{
int i = 0;
if ( endpos > __putMark )
{
while ( s[i] && __putMark < endpos )
PutChar( s[i++] );
if ( s[i] )
__putBuffer[__putMark] = '…';
else
PutSpacesTo( endpos ); /* pads with spaces if necessary */
}
}